package pers.cz.thread;

/**
 * 线程池任务枚举类
 * @program: postgirl-collection-client
 * @description: ThreadKeyFunction
 * @author: Cheng Zhi
 * @create: 2022-02-22 14:30
 **/
public enum ThreadKeyFunction {

    INTERFACE_COLLECT("接口录制", 0), SQL_COLLECT("SQL录制", 1), METHOD_COLLECT("底层方法录制", 2), TEST_CASE_CLEARING("数据清洗", 3);

    // 成员变量
    private String name;
    private int index;

    // 构造方法
    private ThreadKeyFunction(String name, int index) {
        this.name = name;
        this.index = index;
    }

    // 覆盖方法
    public int getIndex() {
        return this.index;
    }

}
